package com.py.inrejected.service.impl;

import com.py.inrejected.mapper.RejectedInfoMapper;
import com.py.inrejected.service.RejectedInfoService;
import com.py.inrejected.vo.OdPurchaseDetails;
import com.py.inrejected.vo.RejectedInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RejectedInfoServiceImpl implements RejectedInfoService {

    @Resource
    private RejectedInfoMapper rejectedInfoMapper;

    @Override
    public List<RejectedInfo> selectAllByPrCode(String prCode) {
        return rejectedInfoMapper.selectAllByPrCode(prCode);
    }

    @Override
    public List<OdPurchaseDetails> selectOdPurchaseDetailsList(OdPurchaseDetails odPurchaseDetails) {
        return rejectedInfoMapper.selectOdPurchaseDetailsList(odPurchaseDetails);
    }

    @Override
    public int deletePurchaseDetialsByPrCode(String phCode, String productCode) {
        return rejectedInfoMapper.deletePurchaseDetialsByPrCode(phCode,productCode);
    }

    @Override
    public int updatePurchaseDetials(Integer num, String phCode, String productCode) {
        return rejectedInfoMapper.updatePurchaseDetials(num,phCode,productCode);
    }


    @Override
    public int updatePurchase(Integer num, String phCode) {
        return rejectedInfoMapper.updatePurchase(num,phCode);
    }

    @Override
    public int updatePurchaseRejectedNum(Integer num, String phCode, String productCode) {
        return rejectedInfoMapper.updatePurchaseRejectedNum(num,phCode,productCode);
    }

    @Override
    public int changePurchaseOrder(String phCode) {
        return rejectedInfoMapper.changePurchaseOrder(phCode);
    }


}
